package org.shop.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.shop.dao.CashDrawsMapper;
import org.shop.entity.CashDraws;
import org.shop.service.CashDrawsService;
import org.shop.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class CashDrawsServiceImpl extends BaseServiceImpl<CashDraws, Long> implements CashDrawsService{
	
	@Autowired
	private CashDrawsMapper cashDrawsMapper;

	@Override
	public Map<String, Object> getCashDrawsInfo(Map<String, Object> paramMap) {
		List<CashDraws> cashDrawsList = cashDrawsMapper.getCashDrawsList(paramMap);
        Integer count = cashDrawsMapper.getCashDrawsCount(paramMap);
        //分页数据
        Map<String, Object> dataMap = new HashMap<String, Object>();
        dataMap.put("total", count);
        dataMap.put("rows", cashDrawsList);
        return dataMap;
	}

	
	
}